package com.ktgj.hotel.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ktgj.hotel.mapper.HotelOrderRoomMapper;
import com.ktgj.hotel.domain.HotelOrderRoom;
import com.ktgj.hotel.service.IHotelOrderRoomService;

/**
 * 酒店订单房间明细Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-12-08
 */
@Service
public class HotelOrderRoomServiceImpl implements IHotelOrderRoomService 
{
    @Autowired
    private HotelOrderRoomMapper hotelOrderRoomMapper;

    /**
     * 查询酒店订单房间明细
     * 
     * @param roomid 酒店订单房间明细ID
     * @return 酒店订单房间明细
     */
    @Override
    public HotelOrderRoom selectHotelOrderRoomById(Long roomid)
    {
        return hotelOrderRoomMapper.selectHotelOrderRoomById(roomid);
    }

    /**
     * 查询酒店订单房间明细列表
     * 
     * @param hotelOrderRoom 酒店订单房间明细
     * @return 酒店订单房间明细
     */
    @Override
    public List<HotelOrderRoom> selectHotelOrderRoomList(HotelOrderRoom hotelOrderRoom)
    {
        return hotelOrderRoomMapper.selectHotelOrderRoomList(hotelOrderRoom);
    }

    /**
     * 新增酒店订单房间明细
     * 
     * @param hotelOrderRoom 酒店订单房间明细
     * @return 结果
     */
    @Override
    public int insertHotelOrderRoom(HotelOrderRoom hotelOrderRoom)
    {
        return hotelOrderRoomMapper.insertHotelOrderRoom(hotelOrderRoom);
    }

    /**
     * 修改酒店订单房间明细
     * 
     * @param hotelOrderRoom 酒店订单房间明细
     * @return 结果
     */
    @Override
    public int updateHotelOrderRoom(HotelOrderRoom hotelOrderRoom)
    {
        return hotelOrderRoomMapper.updateHotelOrderRoom(hotelOrderRoom);
    }

    /**
     * 批量删除酒店订单房间明细
     * 
     * @param roomids 需要删除的酒店订单房间明细ID
     * @return 结果
     */
    @Override
    public int deleteHotelOrderRoomByIds(Long[] roomids)
    {
        return hotelOrderRoomMapper.deleteHotelOrderRoomByIds(roomids);
    }

    /**
     * 删除酒店订单房间明细信息
     * 
     * @param roomid 酒店订单房间明细ID
     * @return 结果
     */
    @Override
    public int deleteHotelOrderRoomById(Long roomid)
    {
        return hotelOrderRoomMapper.deleteHotelOrderRoomById(roomid);
    }
}
